import random
hide_card = random. randint(1,100)

count = 0
if hide_card <100 and hide_card >0:
    while True:
        if count <10:
            guess = input("输入数字")
            guess_digit = int(guess)
            if guess_digit == hide_card:
                print("猜中")
                break
            elif guess_digit > hide_card:
                print("太大了")
            else:
                print("太小了")
            count +=1
        else:
            print("傻逼猜那么多次都不对")
            print("正确答案：%s"%(hide_card))
            break
else:
    print("请输入正确数字")
